package zhr.chapter5.three;

public class Example5_3 {
    public static void main(String[] args) {
        ClassB classB = new ClassB();
        classB.n=100;
        double result1 = classB.sum();
        double result2 = classB.sub();
        System.out.println("result1 = "+result1);
        System.out.println("result2 = "+result2);
    }

}
